<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>a标签的伪类</title>
    <style>
        .h_state:hover{
            color: red;
        }
        .h_state:active{
            color: yellow;
        }
    </style>
</head>
<body>
    <span class="h_state">我是span标签</span>
    <span>我是另一个span标签</span>
</body>
